package com.sixth.feign;

import com.sixth.entity.Course;
import com.sixth.entity.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = "education-teacherlist")
public interface CourseFeign {

    @PostMapping("/core/course/selectCourseById/{courseId}")
    Course selectCourseById(@PathVariable String courseId);

    @PostMapping("/core/subject/findAllSubject")
    List<Subject> findAllSubject();
}
